/**
 * @author
 * @version V1.0
 */
package com.hc.service.service.impl;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.hc.comm.mapper.Mapper;
import com.hc.comm.base.BaseServiceImpl;
import com.hc.service.dao.UserStepNumberMapper;
import com.hc.service.model.UserStepNumberModel;
import com.hc.service.service.IUserStepNumberService;

import java.util.List;

/**
 * 微信用户运动步数表的业务实现类
 *
 * @author
 */
@Service("userStepNumberService")
public class UserStepNumberServiceImpl extends BaseServiceImpl<UserStepNumberModel>
        implements IUserStepNumberService {


    @Resource(name = "userStepNumberMapper")
    private UserStepNumberMapper userStepNumberMapper;

    @Override
    protected Mapper<UserStepNumberModel> getMapper() {
        return userStepNumberMapper;
    }

    /**
     * 获取时间区间内的运动步数排名
     *
     * @param startTime
     * @param endTime
     * @return
     */
    public List<UserStepNumberModel> getTodayStepNum(long startTime, long endTime) {
        return userStepNumberMapper.getTodayStepNum(startTime, endTime);
    }

}
